Defines the default lower boundary for arrays as 0 or 1.
配列のインデックス範囲について、デフォルトで適用される下限値を 0 ないし 1 のいずれかに設定します。
Option Base { 0 | 1}
Option Base { 0 | 1}
![]() | This statement must be added before the executable program code in a module.
このステートメントを記述するプログラム中の位置は、モジュール内のすべての実行コードよりも前にする必要があります。 |
option Base 1
option Base 1
Sub ExampleOptionBase
Sub ExampleOptionBase
Dim sVar(20) As String
Dim sVar(20) As String
msgbox LBound(sVar())
msgbox LBound(sVar())
end sub
end sub